Data BoardLink
The data board is the heart of the sensors architecure, powered by an ARM M0+ 32-bits at 48Mhz running the Smart Citizen 2.0 software, combining the low power consumption of the ARM M0 family with the power of a 32-bits processor with 32KB of RAM and 256KB FLASH memory. That offers enough program storage and memory space to support multiple auxiliary sensors and no expense. It also includes a Wi-Fi module, a micro SD card slot, an internal Flash and a battery management solution all on a single board.
The ARM M0+ is a SAM D21 from Atmel with 32kB RAM and 256 kB of program memory, operating at 3.3V. It is the same chip used by the Arduino Zero and MKR boards. It also includes 4MB of extra Flash Memory for offline data storage. The Wi-Fi Module is the well known Espressif ESP8266 IEEE 802.11 b/g/n Wi-Fi with 4MB Internal Flash for web content storage.
The Data Board connects to the sensor board providing power, analog and digital communications (12 bits ADC, GPIO, I2C, I2S, VCC). Moreover, it includes a Seeed Studio standard Grove connector where off the shelf modules from the same manufacturer can be connected. The external add-ons can be enabled or disabled from the board to save power. The connector supports an independent I2C bus by default, but it can be configured in software to support other uses (GPIO, I2C and UART). The Smart Citizen Gas and Smart Citizen PM sensor boards described above use this bus receive power and communications from the board.
The board includes a battery management controller with a 2000mAh Lithium polymer cell capable of powering the device in standby for more than two weeks. On a normal operation, the battery will last for more than a week to one day, when all the sensors are enabled and recording every minute. The controller allows the batteries to be easily charged using the boards micro USB connector using any standard USB power adapter like the ones used on Smartphones. On remote areas, it can also be powered using a selection of PV Panels like Voltaics Systems 6W panel.
Light color codes
- Red soft pulsing >> Apmode
- Blue soft pulsing >> wifi.
- Pink soft pulsing >> sdcard.
- Other color + Orange soft pulsing >> on battery.
- Other color + Green soft pulsing >> battery charging.
FirmwareLink
The firmware is built using the Arduino Zero with a custom variant for the Data Board main MCU. The ESP is also built using the Arduino ESP Core. Both firmwares are built and managed with Platform IO, an open-source IDE for embedded development. Platform IO features built-in dependency management and allows you to compile and upload both processors with a single command. Using the SWD ARM connector you can change the MCU bootloader and debug the firmware using Open Source tools.
Info
Learn more about the software running inside the Data Board on the Firmware section.
Software guides
Check the firmware guides and learn how to update and even modify the software:
BusesLink
Sensor Boards connectorLink
The iSCAPE sensor feature a modular architecture where sensors can be updated independently by replacing any individual Sensor Board. The Sensor Boards features GPIO, ADC, I2C, UART and I2S connections at 3.3V. Currently, we only offer the Urban Sensor Board, but more boards are on the way, and you can even design and build a custom one.
Example of a Sensor Board
SAMD21 Pins | Arduino Zero Pin | SCK Pins | SCK Conector | SCK Conector | SCK Pins | Arduino Zero Pin | SAMD21 Pins |
---|---|---|---|---|---|---|---|
GND | GND | GND | 16 | 15 | GND | GND | GND |
GND | GND | GND | 14 | 13 | GND | GND | GND |
PA11 | 0 | I2S_FS | 12 | 11 | TX | A5 | PB2 |
PA7 | 9 | I2S_SD | 10 | 9 | RX | 25 | PB3 |
PA10 | 1 | I2S_SCK | 8 | 7 | VBAT | VBAT | VBAT |
PA22 | 20 | SDA | 6 | 5 | PWM_CO | 13 | PA9 |
PA23 | 21 | SCL | 4 | 3 | PWM_NOX | 14 | PA8 |
VCC | VCC | VCC | 2 | 1 | VCC | VCC | VCC |
Auxiliary connectorLink
The Data Board features and independent configurable auxiliary bus at 3.3V with a SEEED Grove connector. The Bus has native support for I2C, but it can also be setup on firmware as a GPIO or UART port. It can supply power up to 750mA, and it can be enabled or disabled by software.
Example of devices connected via the AUX connector.
Power managementLink
The power infrastructure of the Smart Citizen Kit 2.0 give us the possibility of running directly from a USB power source with or without lithium battery, it is composed by: * BQ24259 USB Charger that manages external power regulation, battery fast charging (up to 2Ah) and USB OTG that allow us powering other devices from the SCK. * BQ27426 Battery Fuel Gauge for precise battery level measuring.
Normaly the SCK uses a 2000 mAh Lithium polymer battery but it is possible to take advantage of larger batteries. The charging current is regulated with a manual imposed limit that can be configured, and also auto adjusts to the connected USB charger capacity. The normal time for completely charging the stock battery is between 2 and 3 hours. It is also possible to use solar panel (5v) to charge the SCK.
The power consumption of the kit depends on which sensors are enabled and how often they are read/published. Between readings the kit goes to sleep mode turning off almost all the subsystems and reducing the power consumption to almost nothing.
The most problematic sensors in terms of power consumption are the MICS gas sensors (NO2 and CO) which needs an always-on heater with a permanent consumption of around 50 mAh (35 hours per charge) and the PM sensor which needs a fan with a consumption of 35 mAh (50 hours per charge). We are working on pulse modes for both sensors that will allow us to turn them on for short periods take a reading and turn them off instantly.
Without those sensors enabled the SCK can operate around a month posting data to sdcard every minute with one charge of 2000 mAh.
The kit will operate normally: read sensors, post, got to sleep. Until the battery charge is below 3% when that threshold is passed it will enter an emergency sleep mode and interrupt all the normal functions until the charge goes over 5%.
User feedbackLink
The charging and battery state information is showed through the led, with small flashes of different color depending on the state:
- USB cable connected
- Orange flash - the battery is charging
- Green flash - charge complete you can disconnect the kit
- No USB cable is connected
- No flash - charge is over 15%
- Orange flash and normal led Behavior (blue or pink breath) - charge is under 15% connect the charger!
- 3 ultra fast red flashes and NO other color - charge is under 3% (emergency sleep) connect the charger!! NO readings are taken!!
Power consumptionLink
BoardsLink
Board | ON | Current |
---|---|---|
Kit | Basics (SAM + Basics, no ESP, no MICs) | 16 |
with ESP | 74 | |
with MICS | 65 | |
ALL ON (KIT V2.0 without PMS) | 120 | |
Kit + Gas Pro Board | Basics (SAM + Basics, no ESP, no MICs) | 40 |
ALL ON | 150 | |
Kit + PM Board | Basics | 60 |
Kit + PM + Gas Pro Boards | Basics | 78 |
ALL ON (STATION) | 350-390 |
Individual ComponentsLink
Component | Current |
---|---|
Kit (SAM + Basics, no ESP, no MICs) | 16 |
MICS | 50 |
ESP | 60 |
Gas Pro Board (with alphasense) | 25 |
PM Board | 35 |
PMS5003 (each) | 90-120* oscillating |